/* WELTWEITIMNETZ BROWSER DEFAULT STYLESHEET
 *
 * Copyright (C) Philipp Ruppel, weltweitimnetz.de
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor,
 * Boston, MA  02110-1301  USA
 */

QMainWindow, QDialog
{
  background-color:#ddd;
}

QToolBar::handle
{
   background:none;
   image:none;
   width:3px;
   height:3px;
}





QToolButton
{
   border: 1px solid transparent;
   border-radius: 4px;
   background:transparent;
   padding:4px 6px 4px 6px;
   /*font-style:italic;*/
}

QToolButton[popupMode="1"] { /* only for MenuButtonPopup */
   padding-right: 20px; /* make way for the popup button */
}

QToolButton:hover
{
   background:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0.0 #f0f0f0, stop: 1 #ddd);
   border-top-color:#f8f8f8;
   border-left-color:#f3f3f3;
   border-right-color:#dbdbdb;
   border-bottom-color:#bbb;
}
QToolButton:pressed
{
   background:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0.0 #ddd, stop: 1 #ccc);
   /*background:#ddd;*/
   border-bottom-color:#f4f4f4;
   border-right-color:#f3f3f3;
   border-left-color:#dbdbdb;
   border-top-color:#bbb;
}

QToolButton::menu-button {
   border: 1px solid transparent;
   border-top-right-radius: 6px;
   border-bottom-right-radius: 6px;
   width: 16px;
}

QToolButton::menu-arrow {

}

QToolButton::menu-arrow:open {
}



QToolBar, QMenuBar, QStatusBar, QMenu, QHeaderView, QHeaderView::section, QDialog
{
  background:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0.0 #eee, stop: 1 #ddd);
  color:black;
  border:none;
}
QToolBar::horizontal
{
  background:url(:/gradient.png);
  background-position: center center;
}
QHeaderView::section
{
  border-right:1px solid #aaa;
}
QHeaderView::section:hover
{
  background:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0.0 #fff, stop: 1 #ddd);
}
QHeaderView::section:pressed
{
  background:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0.0 #ddd, stop: 1 #ddd);
}
QHeaderView
{
  border-bottom:1px solid #555;
}


QMenu::item:selected
{
  background:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0.0 #fff, stop: 1 #ddd);
}
QMenu::item::icon
{
     padding: 2px 25px 2px 20px;
     border: 1px solid transparent; /* reserve space for selection border */
}

QMenu
{
  border:1px solid #aaa;
}
QHeaderView::section
{
  padding:4px;
  border-bottom:1px solid #bbb;
}
QMenuBar::item:pressed, QMenu::item:pressed
{
  background:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0.0 #ccc, stop: 1 #ddd);
}
QMenuBar::item:pressed
{
    border-right:1px solid #eee;
    border-left:1px solid #ccc;
}
QToolBar, QMenuBar, QStatusBar
{
  border-top:1px solid #fff;
  border-bottom:1px solid #aaa;
}
QToolBar
{
  spacing:5px;
  padding:3px;
}
QMenuBar:item
{
  background:transparent;
  color:black;
}




QLineEdit, QSpinBox
{
  border:1px solid #bbb;
  border-radius:2px;
  padding:2px;
  background:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #f8f8f8, stop: 0.6 #fff);
}

QSpinBox::up
{
  border:1px solid gray;
}
QLineEdit:focus
{
  border-color:#bbb;
}

UrlLineEdit > QLineEdit, SearchLineEdit > QLineEdit
{
  border:none;
  margin:4px;
  background:transparent;
  font-size:12px;
  padding:1px;
  color:black;
}


UrlLineEdit, SearchLineEdit
{
  min-height:24px;
  border:1px solid #ccc;
  border-radius:3px;
  background:white;
  color:black;
}

/*SearchLineEdit > *
{
  color:#888;
}*/
/*SearchLineEdit > QLineEdit:focus
{
  color:#000;
}*/

UrlLineEdit > *
{
  margin:0 0 0 5px;
  min-width:16px;
}
UrlLineEdit
{

}

ClearButton
{
   image: url(:/closetab25.png);
}





QTabBar::tab:selected
{
  background:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0.0 #eee, stop: 1 #fff);
  margin-top:1px;
  margin-top:1px;
  padding-bottom:4px;
  border-bottom:none;
}

/*, QTabBar::tab:selected*/

QDialog
{
  border:1px solid #eee;
}
QTabBar::tab, QTabWidget > QPushButton, QTabWidget > QPushButton:hover
{
  border:1px outset #aaa;
  border-top-left-radius:4px;
  border-top-right-radius:4px;
  border-bottom-left-radius:0px;
  border-bottom-right-radius:0px;
  margin-top:2px;
  padding:4px 5px 3px 5px;
  background:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0.0 #ddd, stop: 1 #eee);
}

QDialog > QTabWidget::pane
{
  background:#eee;
  border:1px outset #aaa;
}

QTabBar::close-button
{
   image: url(:/closetab25.png);
}
QTabBar::close-button:hover
{
   image: url(:/closetab40.png);
}
QTabBar::close-button:pressed
{
   image: url(:/closetab75.png);
}


QPushButton, QComboBox:!editable
{
  border:1px solid #aaa;
  border-radius:5px;
  padding:4px 8px;
  background:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0.0 #fff, stop: 1 #ccc);
  height:17px;
}
QPushButton
{
  padding:4px 20px;
}
QPushButton:hover, QComboBox:!editable:hover
{
  background:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0.2 #fff, stop: 1 #ccc);
}
QPushButton:pressed, QComboBox:!editable:on
{
  background:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #bbb, stop: 1 #ccc);
  border-color:#888;
}
QComboBox::drop-down
{
  border:none;
  background:transparent;

  margin:2px;
  border-left:1px solid #bbb;
  padding:2px 2px 2px 4px;
}
QComboBox::drop-down:on
{
  border:none;
  background:transparent;
  margin:2px;
  border-left:1px solid #aaa;
  padding:2px 2px 2px 4px;
}




QGroupBox {
   background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
                                     stop: 0 #e3e3e3, stop: 1 #e3e3e3);
   border: 1px solid #bbb;
   border-radius: 2px;
   /*margin-top: 5ex;*/ /* leave space at the top for the title */

   padding-top:5ex;
   margin-bottom:8px;
}

QListView, QTreeView
{
   border: 1px solid #aaa;

}

QGroupBox::title {
   /*subcontrol-origin: margin;*/
   subcontrol-position: top center; /* position at the top center */
   padding: 6px 3px;
   background:transparent;
}









/* Customize check boxes. */
QCheckBox {
    spacing: 5px;
}

QCheckBox::indicator {
    width: 13px;
    height: 13px;
}

QCheckBox::indicator:unchecked {
    image: url(:/checkbox_unchecked.png);
}



QCheckBox::indicator:unchecked:pressed {
    image: url(:/checkbox_unchecked_pressed.png);
}

QCheckBox::indicator:checked {
    image: url(:/checkbox_checked.png);
}


QCheckBox::indicator:checked:pressed {
    image: url(:/checkbox_checked_pressed.png);
}


QSizeGrip {
    image: url(:/sizegrip.png);
    width: 16px;
    height: 16px;
}





QSpinBox::up-button
{
  border:none;
}
QSpinBox::down-button
{
  border:none;
}

QComboBox::down-arrow, QComboBox::menu-indicator {
    image: url(:/down_arrow.png);
    width: 7px;
    height: 7px;
}

QComboBox::down-arrow:disabled, QComboBox::down-arrow:pressed, QComboBox::down-arrow:off {
   image: url(:/down_arrow_disabled.png);
}

QComboBox::up-arrow {
    image: url(:/up_arrow.png);
    width: 7px;
    height: 7px;
}

QComboBox::up-arrow:disabled, QComboBox::up-arrow:pressed, QComboBox::up-arrow:off {
   image: url(:/up_arrow_disabled.png);
}



QTabWidget > QPushButton, QTabWidget > QPushButton:hover, QTabWidget > QPushButton:pressed
{
  image:url(:/addtab25.png);
  margin:0px;
  padding:0px;
  min-height:22px;
  min-width:30px;
  margin-bottom:1px;
  border-bottom:none;
}
QTabWidget > QPushButton:pressed
{
  background:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0.0 #ccc, stop: 1 #eee);
  image:url(:/addtab40.png);
}
